<div style='display:flex;margin-top:16px'>
	<div style='flex:3;text-align:right'>服务选择：</div>		
	<div style='flex:8'>
		<select  style='width:90%' id='service_issue_serviceList_select' name='service'>
			<volist name='res_serviceType' id='vo'>
				<option value='{$vo.type_id},{$vo.type_name}'>{$vo.type_name}</option>
			</volist>
		</select>
	</div>
</div>



<script>
//----- sessionStorage.service_info 存储服务名与相应id
$(function(){
	if(!sessionStorage.service_info){  //判断并缓存服务与相应id
		var service = $('#service_issue_serviceList_select').find('option:selected').val();
		sessionStorage.service_info = service;
	}else{
		$('#service_issue_serviceList_select').find('option').each(function(){ //服务选择的状态维持
			if(this.value == sessionStorage.service_info){
				$(this).attr('selected',true);
			}
		});
	}
	//切换服务事件
	$('#service_issue_serviceList_select').change(function(){
		service = $('#service_issue_serviceList_select').find('option:selected').val();
		sessionStorage.service_info = service; //缓存当前选择服务与相应id
		location.reload(true);
	});
});
</script>
